import { Module, forwardRef } from '@nestjs/common';
import { PurchaseService } from './purchase.service';
import { PurchaseController } from './purchase.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Purchase } from 'src/entity/Purchase';
import { Task } from 'src/entity/Task';
import { TaskModule } from 'src/task/task.module';
import { Budget } from 'src/entity/Budget';

@Module({
  imports: [
    forwardRef(() => TaskModule),
    TypeOrmModule.forFeature([Purchase, Task, Budget]),
  ],
  controllers: [PurchaseController],
  providers: [PurchaseService],
  exports: [PurchaseService],
})
export class PurchaseModule { }
